alist= [1,32,223,456,89,45,345,234]
for i in range (0,len(alist)-1):
    for j in range (0,len(alist)-1-i):
        if alist[j] > alist[j+1]:
            alist[j], alist[j+1] = alist[j+1], alist[j]
print(alist)

# 学员信息查询，在三个班级中，查找张三信息，判断张三是否存在，张三属于第几个班级。
classes=[["李斯","赵高","秦二世"],["王五","张三","周⑦"],["哈哈","呵呵","吼吼"]]
i = 1
for c in classes:
    for  s in c:
        if s == "张三":
             print("张三存在于第{}班".format(i))
    i +=1